package com.zzld.modules.maintenance.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "zzld_maintenance_expense")
public class Matnexpense {
    @Id
    private String id;

    private BigDecimal price;

    private BigDecimal yfprice;

    private Date innertime;

    private Integer ispr;

    private String productid;

    private Integer ispro;
    
    private String expensepathid;

    @Transient
    private String productname;
    public  String getProductname(){
    	return productname;
    }
    public void setProductname(String productname){
    	this.productname = productname;
    }
    
    @Transient
    private String pathname;
    public String getPathname(){
    	return pathname;
    }
    public void setPathname(String pathname){
    	this.pathname = pathname;
    }
  
    
    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return price
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * @param price
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * @return yfprice
     */
    public BigDecimal getYfprice() {
        return yfprice;
    }

    /**
     * @param yfprice
     */
    public void setYfprice(BigDecimal yfprice) {
        this.yfprice = yfprice;
    }

    /**
     * @return innertime
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    public Date getInnertime() {
        return innertime;
    }

    /**
     * @param innertime
     */
    public void setInnertime(Date innertime) {
        this.innertime = innertime;
    }

    /**
     * @return ispr
     */
    public Integer getIspr() {
        return ispr;
    }

    /**
     * @param ispr
     */
    public void setIspr(Integer ispr) {
        this.ispr = ispr;
    }

    /**
     * @return productid
     */
    public String getProductid() {
        return productid;
    }

    /**
     * @param productid
     */
    public void setProductid(String productid) {
        this.productid = productid;
    }

    /**
     * @return ispro
     */
    public Integer getIspro() {
        return ispro;
    }

    /**
     * @param ispro
     */
    public void setIspro(Integer ispro) {
        this.ispro = ispro;
    }
    
    public String getExpensepathid(){
    	return expensepathid;
    }
    
    public void setExpensepathid(String expensepathid){
    	this.expensepathid=expensepathid;
    }
}